package com.blog.service.adminadminarticle;

import com.blog.dao.adminarticle.AdminArticleDao;
import com.blog.entity.AdminArticleDetailEntity;

public class AdminArticleService {
	private static AdminArticleService instance;
	private AdminArticleService() {
		
	}
	public static synchronized AdminArticleService getInstance() {
		if(instance==null) {
			instance=new AdminArticleService();
		}
		return instance;
	}
	private AdminArticleDao dao=AdminArticleDao.getInstance();
	/**
	 * 1.根据文章id获取文章内容
	 */
	public AdminArticleDetailEntity getArticleContent(int id) {
		return dao.getArticleContent(id);
	}
}
